package person.xjl.spring;

import org.springframework.stereotype.Service;

@Service
public class Math {
    private float result;
    public void add(int n1,int n2){
        result=n1+n2;
        System.out.println(result);
    }
    public void subtract(int n1,int n2){
        result=n1-n2;
        System.out.println(result);
    }
    public void mul(int n1,int n2){
        result=n1*n2;
        System.out.println(result);
    }
    public void dev(int n1,int n2){
        result=n1/n2;
        System.out.println(result);
    }
}
